#@layout()
#define main()
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" id="edit_form" isLoad="1" loadUrl="#(base)/role/getRole">
            <input type="hidden" name="id" value="#(id)">
            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" required="" lay-verType="tips" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <hr/>
            <div class="layui-form-item" style="text-align: center;">
                <button class="layui-btn" lay-submit="" lay-filter="edit" url="#(base)/role/editRole"><i class="layui-icon">&#xe642;</i>编辑</button>
                <button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
            </div>
        </form>
    </div>
</div>
#end